﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApp.secure_pages
{
    public partial class Citizen : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Request.IsAuthenticated)
            {
                Response.Redirect("~/Account/Login.aspx");
            }
            var citizenid = (long)Session["citizenid"];
            var db = new F11ITNET2Gr7Entities();
            var citizen = db.Citizen.Single(c => c.CitizenID == citizenid);
            db.VitalSign.Single(v => v.CitizenID == citizen.CitizenID);
            
        }
    }
}